/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Tema3;

/**
 *
 * @author Alex
 */
public class Ejer_29_bloque3 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    
        for (int n = 10; n <= 100; n++) {
           
            boolean primo=true;
            
            for (int cont=2; cont <= n/2; cont++) {
                {
                    if(n % cont == 0)
                    {
                        primo=true;
                        break;
                    }
                if (primo) {
                        System.out.println(n+" Es primo");
                    }
            }
        }
        }
    }
}

        
        
        
